<?
require_once('connect.php');
$sender = mysql_real_escape_string($_GET['sender']);
$comment = mysql_real_escape_string($_GET['comment']);
//$email = mysql_real_escape_string($_GET['email']);
//$rate = mysql_real_escape_string($_GET['rate']);
$action = mysql_real_escape_string($_GET['action']);

if($action=="COMMENT"){

$output = "<html xmlns=\"http://www.w3.org/1999/xhtml\">
	<head>	 	

	</head>
	<body>
		<div class=\"title-container\" style=\"font: 13px 'Lucida Grande',Tahoma,Verdana,Arial,Sans-serif;\">
		<br>
		<a href=\"http://www.ffxivspecs.com/#/user/".$sender."\">".$sender."</a> <b style=\"font: 13px 'Lucida Grande',Tahoma,Verdana,Arial,Sans-serif;\">commented on your spec writing:</b><br><br>
		".$comment."<br><br>
		<div style=\"font: 11px 'Lucida Grande',Tahoma,Verdana,Arial,Sans-serif;\">Dont want these messages? You can turn off notifications in your user profile at <a href=\"http://www.ffxivspecs.com\">http://www.ffxivspecs.com</a></div>
		</div>
	</body>
</html>";

}else if ($action == "RATE"){

$output = "<html xmlns=\"http://www.w3.org/1999/xhtml\">
	<head>	 	

	</head>
	<body>
		<div class=\"title-container\" style=\"font: 13px 'Lucida Grande',Tahoma,Verdana,Arial,Sans-serif;\">
		<br>
		<a href=\"http://www.ffxivspecs.com/#/user/".$sender."\">".$sender."</a> <b style=\"font: 13px 'Lucida Grande',Tahoma,Verdana,Arial,Sans-serif;\">rated your spec with:</b><br><br>
		".$comment."<br><br>
		<div style=\"font: 11px 'Lucida Grande',Tahoma,Verdana,Arial,Sans-serif;\">Dont want these messages? You can turn off notifications in your user profile at <a href=\"http://www.ffxivspecs.com\">http://www.ffxivspecs.com</a></div>
		</div>
	</body>
</html>";

}else if ($action == "MSG"){

$output = "<html xmlns=\"http://www.w3.org/1999/xhtml\">
	<head>	 	

	</head>
	<body>
		<div class=\"title-container\" style=\"font: 13px 'Lucida Grande',Tahoma,Verdana,Arial,Sans-serif;\">
		<br>
		<a href=\"http://www.ffxivspecs.com/#/user/".$sender."\">".$sender."</a> <b style=\"font: 13px 'Lucida Grande',Tahoma,Verdana,Arial,Sans-serif;\">sent you a message:</b><br><br>
		".$comment."<br><br>
		<div style=\"font: 11px 'Lucida Grande',Tahoma,Verdana,Arial,Sans-serif;\">Dont want these messages? You can turn off notifications in your user profile at <a href=\"http://www.ffxivspecs.com\">http://www.ffxivspecs.com</a></div>
		</div>
	</body>
</html>";

}

echo $output;

?>
